/**
 * Created by IntelliJ IDEA
 *
 * @author zhengjie
 * @Date:2022/1/7 10:57
 * @Version 1.0
 */
package com.zj.ssm.mapper;

import com.zj.ssm.pojo.domain.Login;
import com.zj.ssm.pojo.domain.UserLogin;
import com.zj.ssm.pojo.domain.vo.UsernameVo;
import org.apache.ibatis.annotations.Param;

public interface LoginMapper {
    Login isLogin(@Param("username") String username, @Param("password") String password);

    UserLogin test1User(String username);

    int register(@Param("username") String username,@Param("telephone") String telephone, @Param("password") String password);

    int register1(UsernameVo usernameVo);

    UserLogin test2User(String password);

    int updatePwd(String newPwd);

    int updatePassword(@Param("username")String username,  @Param("password")String password);

    Login password(Integer id);

    int newPassword(@Param("id") Integer id, @Param("newPassword") String newPassword);

    //int register(UsernameVo usernameVo);
}
